<template>
  <div id="app">
   <router-view/>
   <!-- $route当前路由 -->
    <FooterGuide v-show="$route.meta.showFooter"/> 
   
  </div>
</template>

<script>
import {mapActions} from 'vuex'
import FooterGuide from '../src/components/FooterGuide/FooterGuide.vue'
// import {reqFoodCategorys} from './api'
export default {
     components: {
      FooterGuide
     },
     mounted(){
      // const result= await reqFoodCategorys()
      // console.log(result);
        // this.$store.dispatch('getAddress')
        this.getAddress()
        this.getUserInfo()
     },
     methods:{
      ...mapActions(['getAddress','getUserInfo'])
     }
}
</script>

     <style lang='scss'>
     #app{
       width: 100%;
       height: 100%;
       background: #f5f5f5;
     }

</style>
